#include "widgetscreen.h"

WidgetScreen::WidgetScreen(QWidget *parent) :
    QWidget(parent)
{

}

void WidgetScreen::drawGraphicScreen(QWidget *w, QString a[])
{

//   graphicsView = new QGraphicsView(w);
//   graphicsView->setObjectName(QString::fromUtf8("graphicsView"));
//   graphicsView->setGeometry(QRect(60, 20, 200, 150));
//   graphicsView_2->setStyleSheet("background-image:url(/picture/01.png)");
//   graphicsView_2->show();

    // int SumCard ;

//     for (int i = 0; i<SumCard;i++)
//     {
//         graphicsView[i] = new QGraphicsView(w);
//         graphicsView[i]->setObjectName(QString::fromUtf8("graphicsView"+QString::number(i)));
//         graphicsView[i]->setGeometry(QRect(60+i*230, 20, 200, 150));
//         graphicsView[i]->setStyleSheet("background-image:url(/picture/" +a[i]+")");
//         graphicsView[i]->show();
//     }
}

int WidgetScreen::getIndexScreenPresent()
{
   return IndexScreenPresent;
}

void WidgetScreen::drawButton(QWidget *w)
{
//   QPushButton *pushButton;
//   QPushButton *nextButton;
//   QPushButton *PrevButton;

//   pushButton = new QPushButton(w);
//   pushButton->setObjectName(QString::fromUtf8("pushButton"));
//   pushButton->setGeometry(QRect(100, 190, 121, 31));
//   nextButton = new QPushButton(w);
//   nextButton->setObjectName(QString::fromUtf8("nextButton"));
//   nextButton->setGeometry(QRect(30, 190, 41, 31));
//   PrevButton = new QPushButton(w);
//   PrevButton->setObjectName(QString::fromUtf8("PrevButton"));
//   PrevButton->setGeometry(QRect(250, 190, 41, 31));

//   connect(nextButton,SIGNAL(clicked()),w,SLOT(SlotNextObject()));
//   connect(PrevButton,SIGNAL(clicked()),w,SLOT(SlotPrevObject()));
}

void WidgetScreen::SlotNextObject()
{
//    for (int i = 0; i<SumCard;i++)
//    {
//        animation = new QPropertyAnimation(this, "geometry");
//        animation->setDuration(300);
//        animation->setStartValue(QRect(0, 0, 320, 240));
//        animation->setEndValue(QRect(-320, 0, 320, 240));
//        animation->start();
//    }
}

void WidgetScreen::SlotPrevObject()
{
 //       animation = new QPropertyAnimation(this, "geometry");
}
